package com.atwork.service.impl;

import com.atwork.dao.SysAclDao;
import com.atwork.model.normal.SysAcl;
import com.atwork.service.SysAclService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: zhaojun
 * @CreateTime: 2018/8/4 20:55
 * @Desc:
 */
@Service
public class SysAclServiceImpl implements SysAclService{
    @Autowired
    private SysAclDao sysAclDao;
    @Override
    public int insertSysAcl(SysAcl record) {
        return sysAclDao.insertSysAcl(record);
    }

    @Override
    public SysAcl getSysAclById(Integer id) {
        return sysAclDao.getSysAclById(id);
    }

    @Override
    public int updateSysAclById(SysAcl record) {
        return sysAclDao.updateSysAclById(record);
    }

    @Override
    public List<SysAcl> getSysAclByRoleId(Integer roleId) {
        return sysAclDao.getSysAclByRoleId(roleId);
    }
}
